/*
 * Created on 21.10.2003
 * Local Projects Database
 * Mihai Postelnicu (mihai@ro-gateway.org)
 * (comparator) 2003 by eRomania Gateway
 */
package ro.gateway.aida.obj;

import java.util.Comparator;

/**
 * @author Mihai Postelnicu
 * @patcher Mihai.Popoaei@intellisource.ro
 *
 *  e-mail (mihai@ro-gateway.org)
 * (comparator) 2003 by eRomania Gateway
 */
public class Category extends LocalizedItem {
	
	public static class NameComparator implements Comparator {
		   public int compare(Object o1, Object o2) {
			Category t1 = (Category) o1;
			Category t2 = (Category) o2;

			   return (t1.getName().toString().toUpperCase().compareTo(t2.getName()
																		  .toString()
																		  .toUpperCase()));
		   }
	   }
	
	protected LangString name;
	protected int id;
	protected Category c;

      public Category() {
      		super();
            this.name = new LangString();
      }

	/**
	 * @return
	 */
	public int getId() {
		return id;
	}

	/**
	 * @return
	 */
	public LangString getName() {
		return name;
	}
	

	/**
	 * @param i
	 */
	public void setId(int i) {
		id = i;
	}

}
